From: Dario Faggioli Date: Thu, 4 Aug 2016 08:59:03 +0000 (+0200) Subject: tools: xenalyze: kill spurious sched_switch output in non dump mode. X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~601 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=72798298c751a3df21473a0d86d05ec7bb46e258;p=xen.git tools: xenalyze: kill spurious sched_switch output in non dump mode. In fact, 52cf096df7 ("xenalyze: handle scheduling event"), when dealing with TRC_SCHED_SWITCH, forgot to check whether we actually are in dump mode, causing the printf() in dump_sched_switch() to always produce its output, which is not what we want. Signed-off-by: Dario Faggioli Acked-by: George Dunlap --- diff --git a/tools/xentrace/xenalyze.c b/tools/xentrace/xenalyze.c index d223de6260..3d06e45b36 100644 --- a/tools/xentrace/xenalyze.c +++ b/tools/xentrace/xenalyze.c @@ -7629,7 +7629,8 @@ void sched_process(struct pcpu_info *p) } break; case TRC_SCHED_SWITCH: - dump_sched_switch(ri); + if(opt.dump_all) + dump_sched_switch(ri); break; case TRC_SCHED_SWITCH_INFPREV: if(opt.dump_all) {